<%--
  Created by IntelliJ IDEA.
  User: 陈奕安
  Date: 2025/5/26
  Time: 23:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String username=request.getParameter("uname");
    String userpasswad=request.getParameter("pwd");
    if ("chenyian".equals(username)&&"123456".equals(userpasswad)){
        response.sendRedirect("welcome.jsp");
    }
    else {
        String msg="用户名或密码错误";
        session.setAttribute("message",msg);
        response.sendRedirect("Login.jsp");

    }


%>
</body>
</html>
